package com.spring.shops.service;

import com.spring.shops.model.dto.SysRoleDTO;
import com.spring.shops.model.dto.SysSaveRoleDTO;
import com.spring.shops.model.result.IPageIndexImg;
import com.spring.shops.model.result.ServerResponseEntityVoid;
import com.spring.shops.model.vo.SysMenuVO;
import com.spring.shops.model.vo.SysRoleVO;

import java.util.List;

public interface RoleService {
    /**
     * 列出所有的角色
     * @return
     */
    ServerResponseEntityVoid<List<SysRoleVO>> list();
    /**
     * 角色列表分页查询
     * @param dto
     * @return
     */
    ServerResponseEntityVoid<IPageIndexImg<SysRoleVO>> page(SysRoleDTO dto);
    /**
     * 新增角色
     * @param dto
     * @return
     */
    ServerResponseEntityVoid save(SysSaveRoleDTO dto);
    /**
     * 根据id删除角色
     * @param integers
     * @return
     */
    ServerResponseEntityVoid deleteByIds(List<Long> integers);
    /**
     * 根据id获取信息
     * @param roleId
     * @return
     */
    ServerResponseEntityVoid<SysRoleVO> getInfoById(Long roleId);
    /**
     * 根据id更新信息
     * @param dto
     * @return
     */
    ServerResponseEntityVoid updateInfoById(SysSaveRoleDTO dto);
}
